{template 'common/header'}
<ul class="nav nav-tabs">
    <li class="active" ><a href="{php echo url('sms/plan/list');}">监测通知列表</a></li>
    <li><a href="{php echo url('sms/plan/add');}">增加监测通知</a></li>
</ul>
<div class="panel panel-info " id="query">
    <div class="panel-heading">
        <a class="accordion-toggle" data-toggle="collapse" href="#collapseOne">
            筛选
        </a>
    </div>
    <div id="collapseOne"  class="panel-body panel-collapse collapse in ">
        <form action="{php echo url('plan/plan/list');}" method="post" class="form-horizontal " role="form">

            <div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">名称</label>
                <div class="col-sm-3">
                    <input type="text" name="keyword" class="form-control" value="{$_GPC['keyword']}" placeholder="请输入名称">
                </div>
                <label class="col-xs-12 col-sm-1 col-md-1 control-label">状态</label>
                <div class="col-sm-2">
                    <select name="searchtype" class="form-control">
                        <option value="" selected="selected">不限</option>
                        {loop $status $k $v}
                        <option value="{$k}" >{$v}</option>
                        {/loop}
                    </select>
                </div>
                <div class="pull-right col-xs-12 col-sm-2 col-lg-1">
                    <button class="btn btn-block"><i class="fa fa-search"></i> 搜索</button>
                </div>
            </div>
        </form>
    </div>

</div>
<div class="clearfix">
    <div class="table-responsive">
        <table class="table table-hover">
            <thead>
            <tr>
                <th style="width:120px;">名称</th>
                <th style="width: 120px">方案名称</th>
                <th style="max-width: 220px" >内容</th>
                <th style="width:90px;">创建人</th>
                <th >状态</th>
                <th style="width:120px;">处理时间</th>
                <th style="width:110px;">操作</th>
            </tr>
            </thead>
            <tbody>
            {loop $list $row}
            <tr>
                <td>{$row['title']}</td>
                <td>{php echo getGroupTitle($row['groupid'])}</td>
                <td>{$row['content']}</td>
                <td>{$row['creator']}</td>
                <td>{$status[$row['status']]}</td>
                <td>{php echo date('Y-m-d <br>H:i:s', $row['changetime'])}</td>
                <td>
                    {php echo geneCtrlBtn($row,$user,'plan');}
                </td>


            </tr>
            {/loop}
            </tbody>
        </table>
        {$pager}
    </div>
</div>

{template 'common/footer'}